/**
 * 公共API
 */
import {
	request,
	Method
} from "@/utils/request.js";
import api from "@/config/api.js";

/**
 * 获取地区树数据
 */
export function getRegionsById(params) {
	return request({
		url: `/api/ajax/areaTree`,
		method: Method.GET,
		params,
	});
}


/**
 * 获取地区数据
 */
export function getAreaTree(params) {
	return request({
		url: `/api/ajax/areaTree`,
		method: Method.GET,
		params
	});
}

/**
 * 获取前端公共配置
 */
export function publicWeb(params) {
	return request({
		url: `/api/Common/publicWeb`,
		method: Method.GET,
		params
	});
}



/**
 * 文件上传地址
 * @type {string}
 */
export const upload = api.buyer + "/api/ajax/upload";